
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>include指令与动作</title>
</head>
<body>
    <h1>include</h1>

    <%--<%@ include file="function.jsp"%>--%>
    <%--include指令，静态包含，直接把代码引入servlet，同一个Servlet--%>

    <jsp:include page="function.jsp">
        <jsp:param name="name" value="123"></jsp:param>
    </jsp:include>
    <%--include动作，两个servlet ,动态包含,支持参数传递--%>

</body>
</html>


